#include <bits/stdc++.h>
using namespace std;
const int N = 2010;

int a[N], b[N], c[N * 2];
int la, lb, lc;

void mul()
{
	for(int i = 0;i < la;i ++)
	{
		for(int j = 0;j < lb;j ++)
		{
			c[i + j] += a[i] * b[j];
			c[i + j + 1] += c[i + j] / 10;
			c[i + j] %= 10;
		}
	}
	while(lc > 1 && c[lc - 1] == 0) lc --;
}

int main()
{
	string s1, s2; cin >> s1 >> s2;
	la = s1.size(), lb = s2.size(), lc = la + lb;
	for(int i = la - 1;i >= 0;i --) a[la - 1 - i] = s1[i] - '0';
	for(int i = lb - 1;i >= 0;i --) b[lb - 1 - i] = s2[i] - '0';
	mul();
	for(int i = lc - 1;i >= 0;i --) cout << c[i];
	return 0;
}